﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ValidationHelper.Validators
{
    public class NullValidator : ObjectValidator
    {
        #region Construtores
        public NullValidator(string message, Type exceptionType, object objectToValidate)
            : base(message, exceptionType, objectToValidate) { }
        #endregion

        #region Métodos
        protected override bool IsNotValid()
        {
            return (ObjectToValidate == null);
        }
        #endregion
    }
}
